package com.askinhand.dao;
import java.util.List;

import com.askinhand.bean.User;
import com.askinhand.bean.UserInfo;

public interface IUserInfoDAO {

	//property constants
	public static final String AGE = "age";

	public abstract void save(UserInfo transientInstance);

	public abstract void delete(UserInfo persistentInstance);

	public abstract UserInfo findById(java.lang.Integer id);

	public abstract List findByUser(User user);

	public List findByUid(int uid);
	
	public abstract List findByExample(UserInfo instance);

	public abstract List findByProperty(String propertyName, Object value);
	
	public abstract List findByAge(Object age);

	public abstract List findByEmail(Object email);

	public abstract List findByGender(Object gender);

	public abstract List findByName(Object name);

	public abstract List findByPhone(Object phone);

	public abstract List findByPpoints(Object ppoints);

	public abstract List findBySkilled(Object skilled);

	public abstract List findBySpoints(Object spoints);

	public abstract List findByTitle(Object title);

	public abstract List findAll();

	public abstract UserInfo merge(UserInfo detachedInstance);

	public abstract void attachDirty(UserInfo instance);

	public abstract void attachClean(UserInfo instance);

}